﻿<!DOCTYPE html>
<!--
Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.
For licensing, see LICENSE.html or https://ckeditor.com/legal/ckeditor-oss-license/
-->
<html>
<head>
	<title>Basic Styles &mdash; CKEditor Sample</title>
	<meta content="text/html; charset=utf-8" http-equiv="content-type" />
	<script type="text/javascript" src="../../../ckeditor.js"></script>
	<script type="text/javascript" src="../plugin.js"></script>
	<link href="../../../samples/sample.css" rel="stylesheet" type="text/css" />
	<script type="text/javascript">

CKEDITOR.config.extraPlugins = 'basicstyles';

	</script>
	<style type="text/css">
		/* CKEditor editables are automatically set with the "ckeditor-editable" class. */
		.ckeditor-editable
		{
			border: 3px dotted orange !important;
		}

		/* The following styles are just for this demo page purpose. */

		#header, #contents
		{
			border: 3px solid transparent;
			padding: 10px;
		}

		#sample-doc
		{
			width: 45%;
			float: left;
		}

		#tools
		{
			width: 45%;
			padding-left: 20px;
			float: left;
		}

		table, td, caption
		{
			border: 1px solid gray;
			border-collapse: collapse;
		}

		hr
		{
			border: 1px solid gray;
			border-style: solid none none;
			margin: 10px 0 12px;
		}
	</style>
</head>
<body>
	<h1 class="samples">
		CKEditor Sample &mdash; Basic Styles
	</h1>
	<div class="description">
		<p>
			This sample demonstrates the basc styles usage.</p>
	</div>
	<!-- This <div> holds alert messages to be display in the sample page. -->
	<div id="alerts">
		<noscript>
			<p>
				<strong>CKEditor requires JavaScript to run</strong>. In a browser with no JavaScript
				support, like yours, you should still see the contents (HTML data) and you should
				be able to edit it normally, without a rich editor interface.
			</p>
		</noscript>
	</div>
	<div id="sample-doc">
		<h2 id="header" contenteditable="true">
			Little Red Riding Hood</h2>
		<hr />
		<div id="contents" contenteditable="true">
			<p>
				<img alt="" src="https://a.cksource.com/c/1/inc/img/demo-little-red.jpg" style="margin-left: 10px;
					margin-right: 10px; float: left; width: 120px; height: 168px;" />
				&quot;<b>Little Red Riding Hood</b>&quot; is a famous <a href="https://en.wikipedia.org/wiki/Fairy_tale"
					title="Fairy tale">fairy tale</a> about a young girl&#39;s encounter with a
				wolf. The story has been changed considerably in its history and subject to numerous
				modern adaptations and readings.</p>
			<table style="width: 200px; float: right;">
				<caption>
					<strong>International Names</strong></caption>
				<tbody>
					<tr>
						<td>
							Chinese
						</td>
						<td>
							<i>小紅帽</i>
						</td>
					</tr>
					<tr>
						<td>
							Italian
						</td>
						<td>
							<i>Cappuccetto Rosso</i>
						</td>
					</tr>
					<tr>
						<td>
							Spanish
						</td>
						<td>
							<i>Caperucita Roja</i>
						</td>
					</tr>
				</tbody>
			</table>
			<p>
				The version most widely known today is based on the <a href="https://en.wikipedia.org/wiki/Brothers_Grimm"
					title="Brothers Grimm">Brothers Grimm</a> variant. It is about a girl called
				Little Red Riding Hood, after the red <a href="https://en.wikipedia.org/wiki/Hood_%28headgear%29"
					title="Hood (headgear)">hooded</a> <a href="https://en.wikipedia.org/wiki/Cape" title="Cape">
						cape</a> or <a href="https://en.wikipedia.org/wiki/Cloak" title="Cloak">cloak</a>
				she wears. The girl walks through the woods to deliver food to her sick grandmother.</p>
			<p>
				A wolf wants to eat the girl but is afraid to do so in public. He approaches the
				girl, and she na&iuml;vely tells him where she is going. He suggests the girl pick
				some flowers, which she does. In the meantime, he goes to the grandmother&#39;s
				house and gains entry by pretending to be the girl. He swallows the grandmother
				whole, and waits for the girl, disguised as the grandmother.</p>
			<p>
				When the girl arrives, she notices he looks very strange to be her grandma. In most
				retellings, this eventually culminates with Little Red Riding Hood saying, &quot;My,
				what big teeth you have!&quot;<br />
				To which the wolf replies, &quot;The better to eat you with,&quot; and swallows
				her whole, too.</p>
			<p>
				A <a href="https://en.wikipedia.org/wiki/Hunter" title="Hunter">hunter</a>, however,
				comes to the rescue and cuts the wolf open. Little Red Riding Hood and her grandmother
				emerge unharmed. They fill the wolf&#39;s body with heavy stones, which drown him
				when he falls into a well. Other versions of the story have had the grandmother
				shut in the closet instead of eaten, and some have Little Red Riding Hood saved
				by the hunter as the wolf advances on her rather than after she is eaten.</p>
			<p>
				The tale makes the clearest contrast between the safe world of the village and the
				dangers of the <a href="https://en.wikipedia.org/wiki/Enchanted_forest" title="Enchanted forest">
					forest</a>, conventional antitheses that are essentially medieval, though no
				written versions are as old as that.</p>
		</div>
	</div>
	<div id="tools">
		<p id="instanceTools">
			<input type="button" value="Bold" onclick="CKEDITOR.currentInstance && CKEDITOR.currentInstance.execCommand('bold');" />
			<input type="button" value="Italic" onclick="CKEDITOR.currentInstance && CKEDITOR.currentInstance.execCommand('italic');" />
			<input type="button" value="Underline" onclick="CKEDITOR.currentInstance && CKEDITOR.currentInstance.execCommand('underline');" />
			<input type="button" value="Strike-through" onclick="CKEDITOR.currentInstance && CKEDITOR.currentInstance.execCommand('strike');" />
			<input type="button" value="Subscript" onclick="CKEDITOR.currentInstance && CKEDITOR.currentInstance.execCommand('subscript');" />
			<input type="button" value="Superscript" onclick="CKEDITOR.currentInstance && CKEDITOR.currentInstance.execCommand('superscript');" />
			&mdash;
			<input type="button" value="Get Data" onclick="CKEDITOR.currentInstance && ( document.getElementById('output').value=CKEDITOR.currentInstance.getData() );" />
			<input type="button" value="Set Data" onclick="CKEDITOR.currentInstance && CKEDITOR.currentInstance.setData(document.getElementById('output').value);" />
		</p>
		<p>
			<textarea id="output" style="width: 100%; height: 350px;"></textarea>
		</p>
	</div>
	<div id="footer">
		<hr />
		<p contenteditable="true">
			CKEditor - The text editor for the Internet - <a class="samples" href="https://ckeditor.com/">
				https://ckeditor.com</a>
		</p>
		<p id="copy">
			Copyright &copy; 2003-2022, <a class="samples" href="https://cksource.com/">CKSource</a> Holding sp. z o.o. All rights reserved.
		</p>
	</div>
</body>
</html>
